#!/bin/sh
# Copyright (c) Nuvoton Technology Corp. All rights reserved.

eval `/mnt/ESensor/htdocs/proccgi $*`
 
  if [ "$FORM_storage" != "" ] ; then
	storage_path=$FORM_storage
else
	# default: SD card
	storage_path=mmcblk
fi

STROUT=`/mnt/ESensor/bin/getstorageinfo $storage_path`

echo "Content-type: application/json"
echo ""
cat << EOF
$STROUT
EOF
